package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdProvinceMapper;
import com.diankangwo.factory.entity.TdProvince;
import com.diankangwo.factory.service.TdProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** 省份接口实现类
 * Created by wuye on 2017/9/15.
 */
@Service("TdProvinceService")
public class TdProvinceServiceImpl implements TdProvinceService{

    @Autowired
    private TdProvinceMapper mapper;

    @Override
    public TdProvince queryById(int provinecid) {
        return mapper.selectByPrimaryKey(provinecid);
    }

    @Override
    public List<TdProvince> queryAll() {
        return mapper.queryAll();
    }
}
